home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #1 / Amiga Plus 1999 #1.iso / System-Boost / Sound / AmTagEd / Install_AmTagEd < prev    next >
Encoding:
Text File  |  1998-08-10  |  4.3 KB  |  257 lines

  1. ; Install script for AmTagEd
  2. ;
  3. ; Copyright © 1998 Kimmo Palosaari
  4. ;
  5. ; $VER: Install-AmTagEd 1.5 (17.7.98)
  6. ;
  7.  
  8. (set @default-dest "SYS:Tools")
  9.  
  10. (procedure CopyLibs #srcdir #srcname #dstdir
  11.  
  12.     (copylib
  13.         (prompt "Copying " #srcname "...")
  14.         (help @copylib-help)
  15.         (source (tackon #srcdir #srcname))
  16.         (dest #dstdir)
  17.         (optional "force" "askuser")
  18.         (confirm "expert")
  19.     )
  20. )
  21.  
  22. (complete 0)
  23.  
  24. (message
  25.     "\nAmTagEd 1.5\n\n"
  26.     "Copyright © 1998 Kimmo Palosaari\n\n\n"
  27.     "This script will install AmTagEd\n"
  28.     "and required libraries."
  29. )
  30.  
  31. (set @default-dest
  32.     (askdir
  33.         (prompt "Select the destination directory for AmTagEd.\nA drawer will NOT be created.")
  34.         (help askdir-help)
  35.         (default @default-dest)
  36.     )
  37. )
  38.  
  39. (complete 10)
  40.  
  41. (set @copydoc
  42.     (askbool
  43.         (prompt "\nDo you want to copy the documentation file?")
  44.         (help askbool-help)
  45.         (default 1)
  46.     )
  47. )
  48.  
  49. (complete 20)
  50.  
  51. (if (= @copydoc 1)
  52.     (set @doc-dir
  53.         (askdir
  54.             (prompt "Select the destination directory for the documentation file.")
  55.             (help askdir-help)
  56.             (default @default-dest)
  57.         )
  58.     )
  59. )
  60.  
  61. (complete 30)
  62.  
  63. (set @icontype
  64.     (askchoice
  65.         (prompt "\nSelect what kind of icon you want to install")
  66.         (help askchoice-help)
  67.         (choices "No icon" "MagicWB" "NewIcon")
  68.         (default 1)
  69.     )
  70. )
  71.  
  72. (complete 40)
  73.  
  74. (if (or (= @icontype 1) (= @icontype 2))
  75. (
  76.     (run "Run >NIL: <NIL: SYS:Utilities/MultiView Icons/Icons.iff PORTNAME=AMTAGEDMULTIVIEW")
  77.  
  78.     (set @imagetype
  79.         (askchoice
  80.             (prompt "\nSelect which image you want for icon")
  81.             (help askchoice-help)
  82.             (choices "1" "2" "3")
  83.             (default 0)
  84.         )
  85.     )
  86.  
  87.     (rexx "quitmultiview.rexx")
  88. )
  89. )
  90.  
  91. (complete 50)
  92.  
  93. (set @languages
  94.     (askoptions
  95.         (prompt "\nSelect which languages should be installed.")
  96.         (help askoptions-help)
  97.         (choices
  98.             "English"
  99.             "Suomi"
  100.         )
  101.         (default 1)
  102.     )
  103. )
  104.  
  105. (copyfiles
  106.     (source "AmTagEd")
  107.     (help copyfiles-help)
  108.     (dest @default-dest)
  109. )
  110.  
  111. (if (= @copydoc 1)
  112. (
  113.     (copyfiles
  114.         (source "AmTagEd.guide")
  115.         (help copyfiles-help)
  116.         (dest @doc-dir)
  117.     )
  118.  
  119.     (if (= @icontype 1)
  120.         (copyfiles
  121.             (source "Icons/AmTagEd.guide.icon.info")
  122.             (help copyfiles-help)
  123.             (dest @doc-dir)
  124.             (newname "AmTagEd.guide.info")
  125.         )
  126.         (if (= @icontype 2)
  127.             (copyfiles
  128.                 (source "Icons/AmTagEd.guide.newicon.info")
  129.                 (help copyfiles-help)
  130.                 (dest @doc-dir)
  131.                 (newname "AmTagEd.guide.info")
  132.             )
  133.         )
  134.     )
  135. )
  136. )
  137.  
  138. (if (= @icontype 1)
  139.     (if (= @imagetype 0)
  140.         (copyfiles
  141.             (source "Icons/AmTagEd.icon1.info")
  142.             (help copyfiles-help)
  143.             (dest @default-dest)
  144.             (newname "AmTagEd.info")
  145.         )
  146.         (if (= @imagetype 1)
  147.             (copyfiles
  148.                 (source "Icons/AmTagEd.icon2.info")
  149.                 (help copyfiles-help)
  150.                 (dest @default-dest)
  151.                 (newname "AmTagEd.info")
  152.             )
  153.             (if (= @imagetype 2)
  154.                 (copyfiles
  155.                     (source "Icons/AmTagEd.icon3.info")
  156.                     (help copyfiles-help)
  157.                     (dest @default-dest)
  158.                     (newname "AmTagEd.info")
  159.                 )
  160.             )
  161.         )
  162.     )
  163. )
  164.  
  165. (if (= @icontype 2)
  166.     (if (= @imagetype 0)
  167.         (copyfiles
  168.             (source "Icons/AmTagEd.newicon1.info")
  169.             (help copyfiles-help)
  170.             (dest @default-dest)
  171.             (newname "AmTagEd.info")
  172.         )
  173.         (if (= @imagetype 1)
  174.             (copyfiles
  175.                 (source "Icons/AmTagEd.newicon2.info")
  176.                 (help copyfiles-help)
  177.                 (dest @default-dest)
  178.                 (newname "AmTagEd.info")
  179.             )
  180.             (if (= @imagetype 2)
  181.                 (copyfiles
  182.                     (source "Icons/AmTagEd.newicon3.info")
  183.                     (help copyfiles-help)
  184.                     (dest @default-dest)
  185.                     (newname "AmTagEd.info")
  186.                 )
  187.             )
  188.         )
  189.     )
  190. )
  191.  
  192. (
  193.     (set n 0)
  194.     (while
  195.         (set language
  196.             (select n
  197.                 "English"
  198.                 "suomi"
  199.                 ""
  200.             )
  201.         )
  202.         (
  203.             (if (IN @languages n)
  204.                 (if (<> 0 n)
  205.                 (
  206.                     (set catalogs (tackon "Locale/Catalogs" language))
  207.                     (set destination (tackon "Locale:Catalogs" language))
  208.                     (makedir destination)
  209.                     (if (exists (tackon catalogs "AmTagEd.catalog"))
  210.                         (copylib
  211.                             (prompt "Copying catalog...")
  212.                             (source (tackon catalogs "AmTagEd.catalog"))
  213.                             (dest destination)
  214.                         )
  215.                     )
  216.                 )
  217.                 )
  218.             )
  219.             (set n (+ n 1))
  220.         )
  221.     )
  222. )
  223.  
  224. (CopyLibs "Libs/MUI" "NList.mcc" "MUI:Libs/MUI")
  225.  
  226. (complete 60)
  227.  
  228. (CopyLibs "Libs/MUI" "NListview.mcc" "MUI:Libs/MUI")
  229.  
  230. (complete 65)
  231.  
  232. (CopyLibs "Libs/MUI" "NListviews.mcp" "MUI:Libs/MUI")
  233.  
  234. (complete 70)
  235.  
  236. (CopyLibs "Libs/MUI" "BetterString.mcc" "MUI:Libs/MUI")
  237.  
  238. (complete 75)
  239.  
  240. (CopyLibs "Libs/MUI" "BetterString.mcp" "MUI:Libs/MUI")
  241.  
  242. (complete 80)
  243.  
  244. (CopyLibs "Libs/MUI" "TextEditor.mcc" "MUI:Libs/MUI")
  245.  
  246. (complete 85)
  247.  
  248. (CopyLibs "Libs/MUI" "TextEditor.mcp" "MUI:Libs/MUI")
  249.  
  250. (complete 90)
  251.  
  252. (CopyLibs "Libs" "popupmenu.library" "LIBS:")
  253.  
  254. (complete 100)
  255.  
  256. (exit)
  257.